package io.aircraft.modules.wms.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.aircraft.common.entity.WmsBaseEntity;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 库存实体类
 *
 * @author Cycle gengruyi01@163.com
 * @since 1.0.0 2022-10-13
 */
@Data
@TableName("wms_stock")
public class StockEntity extends WmsBaseEntity {
	private static final long serialVersionUID = 1L;

    /**
     * 库存Id(主键自增长)
     */
    @TableId(type = IdType.AUTO)
	private Long stockId;
	/**
	 * 托盘条码
	 */
	private String contNo;
	/**
	 * 所在位置
	 */
	private String curPosition;
    /**
     * 商品编号
     */
	private String spuNo;
	private String lotNo;
	private String spuName;
    /**
     * 所属仓库
     */
	private Long wareId;
    /**
     * 库存数量
     */
	private BigDecimal stockQnty;
    /**
     * 预分配数量
     */
	private BigDecimal lockedQnty;
    /**
     * 库存状态
     */
	private Integer stockSt;
	private Integer lockSt;
}